package com.ruoyi.app.mapper;

import com.ruoyi.app.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    /**
     * 注册用户
     */
    void register(User user);

    /**
     * 根据账号和密码查询用户
     */
    User selectByCodeAndPassword(User user);

    /**
     * 根据手机号和密码查询用户
     */
    User selectByPhoneAndPassword(User user);

    /**
     * 根据邮箱和密码查询用户
     */
    User selectByEmailAndPassword(User user);

    /**
     * 根据id查询用户
     */
    User selectById(Long id);
}
